<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<!-- Casting SPELs in Lisp - Emacs Lisp Edition, a Comic Book
     Written by Conrad Barski, M.D., http://lisperati.com
     Edited by James A. Webb, http://uberkode.com -->

<head>

  <title>Casting SPELs in Lisp (5)</title>
  <meta http-equiv="content-type" content="text/html;charset=utf-8" />
  <meta http-equiv="Content-Style-Type" content="text/css" />
  <meta name="author" content="James A. Webb" />
  <meta name="date" content="20067-09-16T00:00:00+00:00" />
  <meta name="keywords" content="Emacs, Lisp" />

</head>

<body>

<center>

<table bgcolor="#AAFFAA" cellspacing="10" width="500">
  <tr>
    <td>
      <b>Q: Specifically, what do I need to do to run this 
      program inside Emacs?</b>
    </td>
  </tr>
  <tr>
    <td>
      <b>A:</b> Copy each new code fragment into the Emacs scratch buffer 
      (accessible via the command <tt>C-x b *scratch*</tt>) and move 
      the cursor to the end of each expression and type the command 
      <tt>C-x C-e</tt> to evaluate it.
    </td>
  </tr>
  <tr>
    <td>
      <img src="../images/emacs-screenshot.png" 
           width="442" 
           height="202" 
           alt="Emacs console screenshot" />
    </td>
  </tr>
  <tr>
    <td>
      To make a move in the game, you can just do exactly the same 
      thing - The program will answer your move by displaying text in
      the echo area in the bottom of the Emacs window. If you did
      something wrong and Emacs starts showing error messages, you'll
      want to use the command <tt>M-x top-level</tt>... That usually 
      clears out the errors.
    </td>
  </tr>
  <tr>
    <td>
      <i>One more thing</i>: Sometimes Emacs will truncate 
      messages in the echo area - run the following command 
      in the <tt>*scratch*</tt> buffer to prevent this:
    </td>
  </tr>
  <tr>
    <td>
<pre style="font-weight: bolder; color: darkblue">
  (setq eval-expression-print-length nil)
</pre>
    </td>
  </tr>
</table>

<table cellspacing="10" width="500">
  <tr>
    <td align="center">
      &lt;&lt; <a href="casting-spels-emacs-1.html">begin</a>
      &lt; <a href="casting-spels-emacs-4.html">previous</a> - 
      <a href="casting-spels-emacs-6.html">next</a> &gt;
      <a href="casting-spels-emacs-35.html" >end</a> &gt;&gt;
    </td>
  </tr>
</table>

</center>

</body>

</html>